package main

import (
	"net/http"
	
	"github.com/gin-gonic/gin"
)

func handlerHello(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"Hello" : "World",
	})
}

func SetupRouter() *gin.Engine {
	router := gin.Default()
	
	router.GET("/", handlerHello)
	return router
}

func main()  {
	router := SetupRouter()
	router.Run(":8789")
}


